package com.lykj.modules.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.lykj.core.tenant.mp.TenantEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 实体类
 *
 * @author cxl
 */
@Data
@TableName("lykj_user")
@EqualsAndHashCode(callSuper = true)
public class User extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户UID
	 */
	@ApiModelProperty(value = "用户UID")
	private Long uid;
	/**
	 * 用户编号
	 */
	@ApiModelProperty(value = "用户编号")
	private String code;
	/**
	 * 用户平台
	 */
	@ApiModelProperty(value = "用户平台")
	private Integer userType;
	/**
	 * 账号
	 */
	@ApiModelProperty(value = "账号")
	private String account;

	@ApiModelProperty(value = "openid")
	private String openid;
	/**
	 * 密码
	 */
	@ApiModelProperty(value = "密码")
	private String password;
	/**
	 * 昵称
	 */
	@ApiModelProperty(value = "昵称")
	private String name;
	/**
	 * 真名
	 */
	@ApiModelProperty(value = "真名")
	private String realName;
	/**
	 * 头像
	 */
	@ApiModelProperty(value = "头像")
	private String avatar;
	/**
	 * 邮箱
	 */
	@ApiModelProperty(value = "邮箱")
	private String email;
	/**
	 * 手机
	 */
	@ApiModelProperty(value = "手机")
	private String phone;
	/**
	 * 生日
	 */
//	@DateTimeFormat(pattern = "yyyy-MM-dd")
//	@JsonFormat(pattern = "yyyy-MM-dd")
	@ApiModelProperty(value = "生日")
	private Date birthday;
	/**
	 * 性别
	 */
	@ApiModelProperty(value = "性别")
	private Integer sex;
	/**
	 * 推荐人ID
	 */
	@ApiModelProperty(value = "推荐人ID")
	private Long spreadId;
	/**
	 * 平台积分
	 */
	@ApiModelProperty(value = "平台积分")
	private BigDecimal sysIntegral;
	/**
	 * 收益值余额
	 */
	@ApiModelProperty(value = "收益值余额")
	private BigDecimal sysBalance;
	/**
	 * 贡献值余额
	 */
	@ApiModelProperty(value = "贡献值余额")
	private BigDecimal sysContribute;
	/**
	 * 累计订单总额
	 */
	@ApiModelProperty(value = "累计订单总额")
	private BigDecimal ordersTotal;
	/**
	 * 累计红包订单总额
	 */
	@ApiModelProperty(value = "累计红包订单总额")
	private BigDecimal bonusOrders;
	/**
	 * 累计领取红包
	 */
	@ApiModelProperty(value = "累计领取红包")
	private BigDecimal bonusTotal;
	/**
	 * 累计收益
	 */
	@ApiModelProperty(value = "累计收益")
	private BigDecimal earningsTotal;
	/**
	 * 个人红包上限
	 */
	@ApiModelProperty(value = "个人红包上限")
	private BigDecimal bonusLimit;
	/**
	 * 红包资格0无1有
	 */
	@ApiModelProperty(value = "红包资格0无1有")
	private Integer bonusStatus;
	/**
	 * 提现上限
	 */
	@ApiModelProperty(value = "提现上限")
	private BigDecimal extractLimit;
	/**
	 * 用户级别0普通1VIP2店长3精英4导师5领袖
	 */
	@ApiModelProperty(value = "用户级别0普通1VIP2店长3精英4导师5领袖")
	private Integer userSign;
	/**
	 * 众鸟用户Id
	 */
	@ApiModelProperty(value = "众鸟用户Id")
	private String znUserId;
	/**
	 * 众鸟用户类型0普通用户 1经理人
	 */
	@ApiModelProperty(value = "众鸟用户类型0普通用户 1经理人")
	private Integer znUserType;
	/**
	 * 众鸟现金余额
	 */
	@ApiModelProperty(value = "众鸟现金余额")
	private String znBalance;
	/**
	 * 众鸟设置安全密码true/false
	 */
	@ApiModelProperty(value = "众鸟设置安全密码true/false")
	private String znFundPasswordSet;
	/**
	 * 众鸟安全密码
	 */
	@ApiModelProperty(value = "众鸟安全密码")
	private String znFundPassword;
	/**
	 * 众鸟token
	 */
	@ApiModelProperty(value = "众鸟token")
	private String znToken;
	/**
	 * 是否实名true/false
	 */
	@ApiModelProperty(value = "是否实名true/false")
	private String znAuthenticationed;
	/**
	 * 是否绑卡（0未绑卡 1已绑卡）
	 */
	@ApiModelProperty(value = "是否绑卡（0未绑卡 1已绑卡）")
	private Integer znIsBindCard;
	/**
	 * 是否签约
	 */
	@ApiModelProperty(value = "是否签约")
	private String znSignContract;
	/**
	 * 众鸟用户信息json
	 */
	@ApiModelProperty(value = "众鸟用户信息json")
	private String znUserInfo;
	/**
	 * 角色id
	 */
	@ApiModelProperty(value = "角色id")
	private String roleId;
	/**
	 * 部门id
	 */
	@ApiModelProperty(value = "部门id")
	private String deptId;
	/**
	 * 岗位id
	 */
	@ApiModelProperty(value = "岗位id")
	private String postId;


	@ApiModelProperty(value = "余额提现0开1关")
	private Integer openWithdrawal;
	@ApiModelProperty(value = "余额转入 0开1关")
	private Integer openTransferInBalance;
	@ApiModelProperty(value = "余额转出 0开1关")
	private Integer openTransferOutBalance;
	@ApiModelProperty(value = "每日提现额度")
	private BigDecimal dayWithdrawalLimit;
	@ApiModelProperty(value = "提现总额度")
	private BigDecimal sumWithdrawalLimit;
	@ApiModelProperty(value = "消费专项金")
	private BigDecimal earmarkedMoney;


}
